package com.cskaoyan.market.service;

import com.cskaoyan.market.bo.Register;
import com.cskaoyan.market.bo.Reset;
import com.cskaoyan.market.db.domain.MarketUser;

public interface WxAuthService {

    MarketUser login(String username, String password);

    void updateById(MarketUser user);

    int queryIdByUsername(String username);

    String queryPasswordByUsername(String username);

    /**
     * 注册用户
     * 先判断是否存在该用户
     * @param register
     * @return
     */
    int register(Register register);

    /**
     * 1-先根据手机号码查找, 是否有该用户
     * 2-找到了就对改行密码进行修改
     * 3-验证验证码
     * @param reset
     * @return
     */
    int reset(Reset reset);
}
